import 'package:json_annotation/json_annotation.dart';

part 'add_group_request.g.dart';

@JsonSerializable(explicitToJson: true, anyMap: true)
class AddGroupRequest {
  final String groupName;
  final String groupDesc;
  final BigInt groupOwner;
  final List<BigInt> groupUsers;

  AddGroupRequest(
    this.groupName,
    this.groupDesc,
    this.groupOwner,
    this.groupUsers,
  );

  factory AddGroupRequest.fromJson(Map<String, dynamic> json) =>
      _$AddGroupRequestFromJson(json);

  Map<String, dynamic> toJson() => _$AddGroupRequestToJson(this);
}
